package com.swpu.service_weight.service;

import com.swpu.service_weight.entity.WeightRecord;
import com.baomidou.mybatisplus.extension.service.IService;
import com.swpu.service_weight.entity.vo.MonthDataVo;
import com.swpu.service_weight.entity.vo.WeightQueryVo;
import com.swpu.service_weight.entity.vo.WeightRecordVo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author chaichai
 * @since 2024-02-01
 */
public interface WeightRecordService extends IService<WeightRecord> {

    void recordUserWeight(String openid, WeightRecordVo weight);

    List<MonthDataVo> getUserWeightMonthData(String openid, WeightQueryVo weightQueryVo);

    List<WeightRecord> getWeightMonthAllData(String openid, WeightQueryVo weightQueryVo);

    List<WeightRecord> getWeightDataToChart(String openid, int page, int pageSize);

    Double getLatestWeightData(String openid);
}
